package com.twxm.breed.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.*;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "collection")
public class CollectionInfo {
    @IsKey
    @TableId
    @IsAutoIncrement
    private int id;

    @Column(comment = "采集时间",type = MySqlTypeConstant.DATETIME)
    @IsNotNull
    private Date collectionTime;

    @Column(name = "pond_id",type = MySqlTypeConstant.VARCHAR)
    @IsNotNull
    private FishPond fishPond;
}
